{"ast":null,"code":"import { observable } from \"mobx\";\nimport { useState } from \"react\";\nexport function useLocalObservable(initializer, annotations) {\n  return useState(function () {\n    return observable(initializer(), annotations, {\n      autoBind: true\n    });\n  })[0];\n}","map":{"version":3,"mappings":"AAAA,SAASA,UAAU,QAAwB,MAAM;AACjD,SAASC,QAAQ,QAAQ,OAAO;AAEhC,OAAM,SAAUC,kBAAkB,CAC9BC,WAAyB,EACzBC,WAA2C;EAE3C,OAAOH,QAAQ,CAAC;IAAM,iBAAU,CAACE,WAAW,EAAE,EAAEC,WAAW,EAAE;MAAEC,QAAQ,EAAE;IAAI,CAAE,CAAC;EAA1D,CAA0D,CAAC,CAAC,CAAC,CAAC;AACxF","names":["observable","useState","useLocalObservable","initializer","annotations","autoBind"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/mobx-react-lite/src/useLocalObservable.ts"],"sourcesContent":["import { observable, AnnotationsMap } from \"mobx\"\nimport { useState } from \"react\"\n\nexport function useLocalObservable<TStore extends Record<string, any>>(\n    initializer: () => TStore,\n    annotations?: AnnotationsMap<TStore, never>\n): TStore {\n    return useState(() => observable(initializer(), annotations, { autoBind: true }))[0]\n}\n"]},"metadata":{},"sourceType":"module"}